home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************/
- /* */
- /* TurboCAD for Windows */
- /* Copyright (c) 1993 - 2001 */
- /* International Microcomputer Software, Inc. */
- /* (IMSI) */
- /* All rights reserved. */
- /* */
- /******************************************************************/
-
- // AutoJPEG.h : header file
- //
-
- #include "WSetup.h"
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CAutoJPEG command target
-
- class CAutoJPEG : public CCmdTarget
- {
- DECLARE_DYNCREATE(CAutoJPEG)
-
- CAutoJPEG(); // protected constructor used by dynamic creation
-
- // Attributes
- public:
- CJPEGWriteSetup m_dlg;
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAutoJPEG)
- public:
- virtual void OnFinalRelease();
- //}}AFX_VIRTUAL
-
- // Implementation
- protected:
- virtual ~CAutoJPEG();
- BOOL GetProfileName(IApplication* pIApp, CString& strProfileName);
-
- // Generated message map functions
- //{{AFX_MSG(CAutoJPEG)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
-
- DECLARE_MESSAGE_MAP()
- DECLARE_OLECREATE(CAutoJPEG)
-
- // Generated OLE dispatch map functions
- //{{AFX_DISPATCH(CAutoJPEG)
- afx_msg BSTR GetClassID();
- afx_msg BSTR GetDescription();
- afx_msg BSTR GetInfo();
- afx_msg BSTR GetLastError();
- afx_msg long CheckFlat(LPDISPATCH ThisFilter, LPCTSTR FileName, long ContextFlags, VARIANT FAR* QueryString);
- afx_msg long PreviewFlat(LPDISPATCH ThisFilter, LPCTSTR FileName, long ThumbWidth, long ThumbHeight, BSTR FAR* Description, VARIANT FAR* Thumbnail);
- afx_msg long ReadFlat(LPCTSTR FileName, long ContextFlags, LPDISPATCH Graphics, VARIANT FAR* QueryString);
- afx_msg long WriteFlat(LPCTSTR FileName, long ContextFlags, LPDISPATCH Graphics, VARIANT FAR* QueryString);
- afx_msg BOOL ReadSetup(LPDISPATCH ThisFilter);
- afx_msg BOOL WriteSetup(LPDISPATCH ThisFilter);
- afx_msg BOOL Initialize(LPDISPATCH ThisFilter);
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
- DECLARE_INTERFACE_MAP()
-
- // DUAL_SUPPORT_START
- // add declaration of ISmartObjectServer implementation
- // You need one entry here for each entry in the
- // interface statement of the ODL, plus the entries for a
- // dispatch interface. The BEGIN_DUAL_INTERFACE_PART
- // macro in mfcdual.h automatically generates the IDispatch
- // entries for you.
- // Each entry with the "propput" attribute needs a function
- // named "put_<property name>". Each entry with the "propget"
- // attribute needs a function named "get_<property name>".
- // You can pull these function prototypes from the header file
- // generated by MKTYPLIB.
- BEGIN_DUAL_INTERFACE_PART(DualJPEG, ITurboCADFilter)
- STDMETHOD(get_ClassID)(THIS_ BSTR FAR* retval);
- STDMETHOD(get_Description)(THIS_ BSTR FAR* retval);
- STDMETHOD(get_Info)(THIS_ BSTR FAR* retval);
- STDMETHOD(get_LastError)(THIS_ BSTR* retval);
- STDMETHOD(CheckFlat)(THIS_ IDispatch* ThisFilter, BSTR FileName, long ContextFlags, VARIANT FAR* QueryString, long FAR* retval);
- STDMETHOD(PreviewFlat)(THIS_ IDispatch* ThisFilter, BSTR FileName, long ThumbWidth, long ThumbHeight, BSTR FAR* Description, VARIANT FAR* Thumbnail, long FAR* retval);
- STDMETHOD(ReadFlat)(THIS_ BSTR FileName, long ContextFlags, IDispatch* Graphics, VARIANT FAR* QueryString, long FAR* retval);
- STDMETHOD(WriteFlat)(THIS_ BSTR FileName, long ContextFlags, IDispatch* Graphics, VARIANT FAR* QueryString, long FAR* retval);
- STDMETHOD(ReadSetup)(THIS_ IDispatch* ThisFilter, VARIANT_BOOL FAR* retval);
- STDMETHOD(WriteSetup)(THIS_ IDispatch* ThisFilter, VARIANT_BOOL FAR* retval);
- STDMETHOD(Initialize)(THIS_ IDispatch* ThisFilter, VARIANT_BOOL FAR* retval);
- END_DUAL_INTERFACE_PART(DualJPEG)
-
- // add declaration of ISupportErrorInfo implementation
- // to indicate we support the OLE Automation error object
- DECLARE_DUAL_ERRORINFO()
- // DUAL_SUPPORT_END
- };
-
- /////////////////////////////////////////////////////////////////////////////
-